using System;
using System.Collections.Generic;
using System.Text;

namespace Coriander.Xmpp
{
    /// <summary>
    /// 
    /// </summary>
    public interface IConnection
    {
        /// <summary>
        /// Blocking send. Returns response as array of Bytes.
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        Byte[] Send(Byte[] message);

        /// <summary>
        /// Sends a message asynchronously
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        void SendAsync(Byte[] message);
    }
}
